<template>
  <div id="app">
    <app-header/>
    <section class="container">
      <app-grid/>
      <app-form/>
    </section>
  </div>
</template>

<script>
import AppHeader from "./components/AppHeader.vue";
import AppGrid from "./components/AppGrid.vue";
import AppForm from "./components/AppForm.vue";

export default {
  components: {
    AppHeader,
    AppGrid,
    AppForm
  },
  created() {
    this.$store.commit("initialArrIndex");
  }
};
</script>

<style lang="scss">
#app {
  margin: 5vmin 5vmin 0;
}

.container {
  display: flex;
}

@media screen and (max-width: 700px) {
  .container {
    flex-direction: column;
  }
}
</style>
